package com.wateray.ipassbook.ui.action;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;

import com.wateray.ipassbook.ui.StandardFrame;
import com.wateray.ipassbook.util.ImageManager;
import com.wateray.ipassbook.util.LanguageLoader;

public class ExitAction  extends AbstractAction {

	public ExitAction(){
		super(LanguageLoader.getString("Exit"),ImageManager.getImageIconByShortName("action_stop.gif"));
		putValue(SHORT_DESCRIPTION, LanguageLoader.getString("Exit"));
		putValue(ACTION_COMMAND_KEY ,LanguageLoader.getString("Exit"));
		putValue(MNEMONIC_KEY, KeyEvent.VK_X);
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		StandardFrame.getInstance().dispose();
		
	}

}
